{% if isAdmin %}
<script type="text/javascript" src="{{ STATIC_URL }}script/enableform_admin.js"></script>
{% endif %}
{% if isManager %}
<script type="text/javascript" src="{{ STATIC_URL }}script/enableform_manager.js"></script>
{% endif %}
{% if isApprover %}
<script type="text/javascript" src="{{ STATIC_URL }}script/enableform_approver.js"></script>
{% endif %}
<script type="text/javascript">
$('input.readOnly, textarea.readOnly').each(function() {
	$(this).attr('readonly', 'readonly');
});
$('select.readOnly').each(function() {
	$(this).parent().append('<input type="hidden" name="' + $(this).attr('name') + '" value="' + $(this).attr('value') + '" />');
	$(this).attr('disabled', 'disabled');
});
$('.button').each(function() {
	$(this).removeAttr('readonly');
});
</script>
